package org.jivesoftware.smackx.packet;

import org.jivesoftware.smack.packet.PacketExtension;

public class CapsExtension
  implements PacketExtension
{
  public static final String NODE_NAME = "c";
  public static final String XMLNS = "http://jabber.org/protocol/caps";
  private String hash;
  private String node;
  private String version;

  public CapsExtension(String paramString1, String paramString2, String paramString3)
  {
    this.node = paramString1;
    this.version = paramString2;
    this.hash = paramString3;
  }

  public String getElementName()
  {
    return "c";
  }

  public String getHash()
  {
    return this.hash;
  }

  public String getNamespace()
  {
    return "http://jabber.org/protocol/caps";
  }

  public String getNode()
  {
    return this.node;
  }

  public String getVersion()
  {
    return this.version;
  }

  public void setHash(String paramString)
  {
    this.hash = paramString;
  }

  public void setNode(String paramString)
  {
    this.node = paramString;
  }

  public void setVersion(String paramString)
  {
    this.version = paramString;
  }

  public String toXML()
  {
    return "<c xmlns='http://jabber.org/protocol/caps' hash='" + this.hash + "' " + "node='" + this.node + "' " + "ver='" + this.version + "'/>";
  }
}